package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_account
 */
@TableName(value ="t_account")
public class Account implements Serializable {
    /**
     * 主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer accountId;

    /**
     * 报销编号
     */
    private String accountNo;

    /**
     * 申请人
     */
    private String accountName;

    /**
     * 报销类型
     */
    private String accountType;

    /**
     * 报销金额
     */
    private Double accountNumber;

    /**
     * 报销时间
     */
    private String accountTime;

    /**
     * 申请状态 草稿/已提交
     */
    private String accountStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    public Integer getAccountId() {
        return accountId;
    }

    /**
     * 主键，自增
     */
    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    /**
     * 报销编号
     */
    public String getAccountNo() {
        return accountNo;
    }

    /**
     * 报销编号
     */
    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    /**
     * 申请人
     */
    public String getAccountName() {
        return accountName;
    }

    /**
     * 申请人
     */
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    /**
     * 报销类型
     */
    public String getAccountType() {
        return accountType;
    }

    /**
     * 报销类型
     */
    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    /**
     * 报销金额
     */
    public Double getAccountNumber() {
        return accountNumber;
    }

    /**
     * 报销金额
     */
    public void setAccountNumber(Double accountNumber) {
        this.accountNumber = accountNumber;
    }

    /**
     * 报销时间
     */
    public String getAccountTime() {
        return accountTime;
    }

    /**
     * 报销时间
     */
    public void setAccountTime(String accountTime) {
        this.accountTime = accountTime;
    }

    /**
     * 申请状态 草稿/已提交
     */
    public String getAccountStatus() {
        return accountStatus;
    }

    /**
     * 申请状态 草稿/已提交
     */
    public void setAccountStatus(String accountStatus) {
        this.accountStatus = accountStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Account other = (Account) that;
        return (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
            && (this.getAccountNo() == null ? other.getAccountNo() == null : this.getAccountNo().equals(other.getAccountNo()))
            && (this.getAccountName() == null ? other.getAccountName() == null : this.getAccountName().equals(other.getAccountName()))
            && (this.getAccountType() == null ? other.getAccountType() == null : this.getAccountType().equals(other.getAccountType()))
            && (this.getAccountNumber() == null ? other.getAccountNumber() == null : this.getAccountNumber().equals(other.getAccountNumber()))
            && (this.getAccountTime() == null ? other.getAccountTime() == null : this.getAccountTime().equals(other.getAccountTime()))
            && (this.getAccountStatus() == null ? other.getAccountStatus() == null : this.getAccountStatus().equals(other.getAccountStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
        result = prime * result + ((getAccountNo() == null) ? 0 : getAccountNo().hashCode());
        result = prime * result + ((getAccountName() == null) ? 0 : getAccountName().hashCode());
        result = prime * result + ((getAccountType() == null) ? 0 : getAccountType().hashCode());
        result = prime * result + ((getAccountNumber() == null) ? 0 : getAccountNumber().hashCode());
        result = prime * result + ((getAccountTime() == null) ? 0 : getAccountTime().hashCode());
        result = prime * result + ((getAccountStatus() == null) ? 0 : getAccountStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", accountId=").append(accountId);
        sb.append(", accountNo=").append(accountNo);
        sb.append(", accountName=").append(accountName);
        sb.append(", accountType=").append(accountType);
        sb.append(", accountNumber=").append(accountNumber);
        sb.append(", accountTime=").append(accountTime);
        sb.append(", accountStatus=").append(accountStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}